package com.cisetech.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cisetech.mapper.bobocai.LogoImageMapper;
import com.cisetech.service.LogoImageService;
import com.cisetech.vo.bobocai.LogoImageVo;


@Service
public class LogoImageServiceImpl implements LogoImageService {
	@Autowired
	LogoImageMapper logoImageMapper;
	//添加logo图片
	@Override
	public void insertLogo(LogoImageVo logoImageVo) {
		logoImageMapper.insertLogo(logoImageVo);
	}
	//查询id最大logo图片
	@Override
	public List<LogoImageVo> selectMaxIdLogo(LogoImageVo logoImageVo) {
		List<LogoImageVo> list= logoImageMapper.selectMaxIdLogo(logoImageVo);
		return list.size()>0 ? list : new ArrayList<LogoImageVo>();
	}
	//根据条件查询图片
	@Override
	public List<LogoImageVo> selectLogo(LogoImageVo logoImageVo) {
		List<LogoImageVo> list = logoImageMapper.selectLogo(logoImageVo);
		return list.size()>0 ? list : new ArrayList<LogoImageVo>();
	}

}
